<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.rapid-framework.org.cn/rapid" prefix="rapid" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"  %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 
<rapid:override name="frame-header-style">
	<style>
	/*覆盖 layui*/
	.layui-input-block {
		margin: 0px 10px;
	}
	
	.layui-table {
		margin-top: 0;
	}
	
	.layui-col-md4 {
		padding: 10px;
	}
	
	.layui-col-md8 {
		padding: 10px;
	}
	
	.layui-btn {
		margin: 2px 0 !important;
	}
	</style>
</rapid:override>
<rapid:override name="frame-content"> 
			<div style="padding: 15px;">
				<blockquote class="layui-elem-quote">
					<span class="layui-breadcrumb" lay-separator="/"> <a
						href="/admin">首页</a> <a><cite>菜单内容列表</cite></a>
					</span>
				</blockquote>

				<div class="layui-row">
					<div class="layui-col-md4">
						<form class="layui-form" method="post" id="myForm"
							action="menu/update">
							<input name="menuId" value="${menu.menuId}">
							<div class="layui-form-item">
								<div class="layui-input-block">
									<strong>添加菜单项目</strong>
								</div>
								<div class="layui-input-block">
									名称 <span style="color: #FF5722;">*</span> <input type="text"
										name="menuName" placeholder="如：如留言板" autocomplete="off"
										class="layui-input" required value="${menu.menuName}">
								</div>
								<br>
								<div class="layui-input-block">
									URL <span style="color: #FF5722;">*</span> <input type="text"
										name="menuUrl"
										placeholder="如：http://liuyanzhao.com/message.html"
										autocomplete="off" class="layui-input" value="${menu.menuUrl}">
								</div>
								<br>
								<div class="layui-input-block">
									图标 <input type="text" name="menuIcon"
										placeholder="如：fa fa-comment" autocomplete="off"
										class="layui-input" value="${menu.menuIcon}">
								</div>
								<br>
								<div class="layui-input-block">
									菜单位置 <select name="menuLevel" id="">
										<option value="1" <c:if test="${menu.menuLevel==1}">selected</c:if> >顶部菜单</option>
										<option value="2"  <c:if test="${menu.menuLevel==2}">selected</c:if> >主要菜单</option>
									</select>
								</div>
								<br>
								<div class="layui-input-block">
									<button class="layui-btn" lay-filter="formDemo" type="submit">修改</button> ${msg}
								</div>
							</div>
						</form>
						<blockquote class="layui-elem-quote layui-quote-nm">
							温馨提示：
							<ul>
								<li>1、图标为名称前面的字体图标，可选。采用的是<a
									href="http://fontawesome.io/icons/" target="_blank">fontawesome</a>图标
								</li>
								<li>2、目前只有两种菜单：顶部菜单和主要菜单</li>
							</ul>
						</blockquote>
					</div>
				</div>
			</div>
</rapid:override>
<%@ include file="../framework.jsp" %>